import { GroupNode } from "@logicflow/extension";

class MyGroup extends GroupNode.view { }

console.log("#graph")
console.log(document.getElementById("#graph")?.offsetWidth)
console.log(window.screen.availWidth)
console.log(window.screen.availHeight)

class MyGroupModel extends GroupNode.model {
    initNodeData(data) {
        super.initNodeData(data);
        this.isRestrict = true;
        this.resizable = true;
        this.width = 1920;
        this.height = 300;
    }
    getNodeStyle() {
        const style = super.getNodeStyle();
        style.stroke = "transparent";
        style.strokeWidth = 1;
        return style;
    }
}

export default {
    type: "my-group",
    model: MyGroupModel,
    view: MyGroup
};

